home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- REM The next two lines delete any OLD files that don't
- REM have a matching CSV file.
- RENAME *.OLD *.
- FOR %%h IN (*.) DO IF NOT EXIST %%h.CSV ERASE %%h
- REM Restore the OLD extension to the old files and
- REM remove the extension from the CSV files.
- RENAME *. *.OLD
- RENAME *.CSV *.
- REM For any CSV file that doesn't have a corresponding OLD
- REM file, create one by copying a blank template.
- FOR %%h IN (*.) DO IF NOT EXIST %%h.OLD COPY FILE.TMP %%h.OLD
- RENAME *. *.CSV
-